package com.ruibang.glass.quality.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 * 成品间隔纸受入信息
 * </p>
 *
 * @author wujie
 * @since 2024-03-21
 */

@ApiModel(value = "成品间隔纸受入信息")
@TableName("g_quality_finish_interval_paper")
@Data
public class FinishIntervalPaper {

    @ApiModelProperty(value = "间隔纸受入ID")
    @TableId(value = "paper_id", type = IdType.ASSIGN_ID)
    private String paperId;
    @ApiModelProperty(value = "间隔纸lotNo")
    private String lotNo;
    @ApiModelProperty(value = "检查日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime checkTime;
    @ApiModelProperty(value = "外观有无异常")
    private String abnormal;
    @ApiModelProperty(value = "使用区域")
    private String useArea;
    @ApiModelProperty(value = "产品型号(G8.5,G8.6,G8.6+,G8.7)")
    private String glassModel;
    @ApiModelProperty(value = "测量人")
    private String userId;
    @ApiModelProperty(value = "全长尺寸")
    private Float wholeSize;
    @ApiModelProperty(value = "判定(合格:0,不合格:1)")
    private String decide;
    @ApiModelProperty(value = "厚度测量1")
    private Float thicknessOne;
    @ApiModelProperty(value = "厚度测量2")
    private Float thicknessTwo;
    @ApiModelProperty(value = "厚度测量3")
    private Float thicknessThree;
    @ApiModelProperty(value = "厚度测量4")
    private Float thicknessFour;
    @ApiModelProperty(value = "厚度测量5")
    private Float thicknessFive;
    @ApiModelProperty(value = "受入时1")
    private Float accessOne;
    @ApiModelProperty(value = "受入时2")
    private Float accessTwo;
    @ApiModelProperty(value = "受入时3")
    private Float accessThree;
    @ApiModelProperty(value = "卷纸直径左侧")
    private Float leftDiameter;
    @ApiModelProperty(value = "卷纸直径右侧")
    private Float rightDiameter;
    @ApiModelProperty(value = "两端直径差≤10mm")
    private Float bothDiameterDiff;
    @ApiModelProperty(value = "同一端直径差≤4mm")
    private Float oneDiameterDiff;
    @ApiModelProperty(value = "使用时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime useTime;
    @ApiModelProperty(value = "使用完时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime finishTime;
    @ApiModelProperty(value = "是否删除(1:是,0:否)")
    @TableLogic
    private String isDelete;

    @ApiModelProperty(value = "用户名称")
    @TableField(exist = false)
    private String userName;
}
